package cn.wuxing.mediation.common.core.domain.entity;

import cn.wuxing.mediation.common.core.domain.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import lombok.ToString;

/**
 * 调解委员会表 ic_mediator_committee
 *
 * @author mediation
 */
@Data
@ToString
@TableName(value = "ic_mediator_committee")
public class IcMediatorCommittee extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /** 调解委员会id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /** 父委员会id */
    @TableField(value = "parent_id")
    private Long parentId;

    /** 祖级列表 */
    @TableField(value = "ancestors")
    private String ancestors;

    /** 调解委员会名称 */
    @TableField(value = "mediator_committee_name")
    private String mediatorCommitteeName;

    /** 调解委员会范围 */
    @TableField(value = "mediator_committee_range")
    private String mediatorCommitteeRange;

    /** 显示顺序 */
    @TableField(value = "order_num")
    private Integer orderNum;

    /** 调解委员会状态:0正常,1停用 */
    @TableField(value = "status")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    @TableField(value = "del_flag")
    @TableLogic(value = "0", delval = "2")
    private String delFlag;

    /** 父调解委员会名称 */
    private String parentName;

    /** 子调解委员会 */
    private List<IcMediatorCommittee> children = new ArrayList<IcMediatorCommittee>();


}
